﻿using AutoMapper;
using RearLivestock.Common.Domains.hhx;
using RearLivestock.Common.Domains.hq;
using RearLivestock.Common.Domains.wbx;
using RearLivestock.Common.Dtos;
using RearLivestock.RBAC.Api.Application.hqApplication.Commands.Ablactationss;
using RearLivestock.RBAC.Api.Application.hqApplication.Commands.Bedroomss;
using RearLivestock.RBAC.Api.Application.hqApplication.Commands.Clientss;
using RearLivestock.RBAC.Api.Application.hqApplication.Commands.Departmentss;
using RearLivestock.RBAC.Api.Application.hqApplication.Commands.Eliminate;
using RearLivestock.RBAC.Api.Application.hqApplication.Commands.Enterprisess;
using RearLivestock.RBAC.Api.Application.hqApplication.Commands.Height;
using RearLivestock.RBAC.Api.Application.hqApplication.Commands.Heightss;
using RearLivestock.RBAC.Api.Application.hqApplication.Commands.PigBaby;
using RearLivestock.RBAC.Api.Application.hqApplication.Commands.PigBabyss;
using RearLivestock.RBAC.Api.Application.hqApplication.Commands.PigFarmss;
using RearLivestock.RBAC.Api.Application.hqApplication.Commands.Saless;
using RearLivestock.RBAC.Api.Application.wbxApplication.Commands.Role;
using RearLivestock.RBAC.Api.Application.wbxApplication.Commands.User;
using RearLivestock.RBAC.Api.hhxApplication.Commands.User;

namespace RearLivestock.RBAC.Api.Common
{
    /// <summary>
    /// 配置AutoMapper映射
    /// </summary>
    public class AutoMapperProfile : Profile
    {
        /// <summary>
        /// AutoMapperProfile
        /// </summary>
        public AutoMapperProfile()
        {
            //角色信息添加
            CreateMap<AddRoleCommand, Roles>();
            //角色信息显示
            CreateMap<SearchRoleCommand, Roles>();
            //用户信息
            CreateMap<AddUserCommand, Users>();
            //企业信息添加
            CreateMap<AddEnterpriseCommand, Enterprise>();
            //企业信息显示
            CreateMap<ShowEnterpriceCommand, Enterprise>();
            
            //个人信息反填显示
            CreateMap<SearchUserCommand, Users>();
            //部门信息添加
            CreateMap<AddDepartmentCommand, Departments>();
            //部门信息显示
            CreateMap<ShowDepartmentCommand, Departments>();
            //栋舍管理
            CreateMap<AddBedroomssComand, Bedrooms>();
            //栋舍显示
            CreateMap<ShowBedroomComand, Bedrooms>();
            //后裔期初
            CreateMap<AddPigCommand, PigBabys>();
            //后裔期初显示
            CreateMap<ShowPigCommand, PigBayassesDto>();
            //体侧添加
            CreateMap<AddHeightCommand, Heights>();
            //体侧显示
            CreateMap<ShowHeightCommand, Heights>();
            //猪场管理添加
            CreateMap<AddFarmCommand, Pigfarmas>();
            //猪场管理显示
            CreateMap<ShowFarmCommand, Pigfarmas>();
            //母猪断奶
            CreateMap<AddAblactationsCommand, Ablactations>();
            //母猪断奶
            CreateMap<ShowAblactationsCommand, Ablactations>();
            //猪只淘汰
            CreateMap<AddEliminateCommand, Eliminates>();
            //猪只淘汰
            CreateMap<ShowEliminatesComand, Eliminates>();
            //母猪断奶删除
            CreateMap<DeleteAblactationCommand, Ablactations>();
            //母猪断奶修改
            CreateMap<UpdateAblactationCommand, Ablactations>();
            //母猪断奶详情
            CreateMap<FandAblactationsCommand, Ablactations>();
            //销售添加
            CreateMap<AddSalessCommand, Sales>();
             //销售显示
            CreateMap<ShowSaleComand, Sales>();
            //客户添加
            CreateMap<AddClienComand, Clients>();
            //客户显示
            CreateMap<ShowClientComand, Clients>();





        }
    }
}
